@import "../../../../Configure/Scss/WeChatTabBar";
@import "../../../../Configure/Scss/WeChatSmallTitle";
@import "../../../../Configure/Scss/WeChatMenuList";

.WeChatHomeSetUp {
	user-select: none;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;

	.ant-divider-inner-text {
		font-size: 16px;
		font-family: PingFangSC-Semibold, PingFang SC;
		font-weight: 600;
		color: #444444;
		line-height: 22px;
	}

	& > div {
		height: 100%;

		&.WeChatPreview {
			width: 400px;
			margin-right: 16px;
			display: flex;
			align-items: center;
			justify-content: flex-start;
			flex-direction: column;

			& > .WeChat {
				width: 375px;
				// height: calc(100vh - 170px);
				height: calc(100vh - 250px);
				background: #fff;
				border-radius: 8px;
				position: relative;
				box-shadow: 0px -2px 4px 0px rgba(38, 38, 38, 0.4);

				& > .Top {
					width: 100%;
					height: 88px;
					background: rgba(50, 99, 245, 1);
					font-size: 20px;
					font-family: PingFang SC;
					font-weight: 600;
					color: hsl(0, 0%, var(--hsl));
					line-height: 44px;
					display: flex;
					align-items: flex-end;
					justify-content: center;
				}

				& > .Body {
					height: calc(100% - 88px);
					overflow-y: scroll;
					overflow-x: hidden;
					background: #f9f9f9;

					&::-webkit-scrollbar {
						display: none;
					}

					& > .TopClass {
						width: 100%;
						height: 217px;
						position: relative;
						margin-bottom: 10px;

						& > div {
							height: 117px;
							width: 100%;
							display: flex;
							align-items: center;
							justify-content: center;

							&.TableName {
								position: relative;

								& > div:first-child {
									flex: 1;
									display: flex;
									align-items: baseline;
									justify-content: center;
									flex-direction: column;
									position: relative;
									z-index: 1;

									& > span {
										font-size: 24px;
										font-family: PingFang SC;
										font-weight: 600;
										line-height: 33px;
										text-indent: 20px;
										color: hsl(0, 0%, var(--hsl));
									}
								}

								& > div:last-child {
									position: absolute;
									left: 0;
									top: 0;
									width: 100%;

									& > img {
										position: absolute;
										right: 0;
										top: 0;
										height: 117px;
										display: block;
									}
								}
							}

							&.Options {
								margin-top: -17px;
								background: linear-gradient(
									180deg,
									rgba(255, 255, 255, 0) 0%,
									#f9f9f9 80%
								);
								align-items: flex-end;
								padding: 0 12px;

								& > div {
									border-radius: 8px;

									&.overview {
										flex: 1;
										height: 100px;
										position: relative;
										overflow: hidden;
										z-index: 1;

										& > img {
											position: absolute;
											left: 0;
											top: 0;
											width: 100%;
											height: 100%;
											z-index: -1;
											object-fit: cover;
										}

										& > div {
											width: 100%;
											height: 100%;
											display: flex;
											align-items: flex-end;
											justify-content: center;
											flex-direction: column;
											padding-right: 15%;

											& > div:first-child {
												font-size: 16px;
												font-family: PingFangSC-Semibold, PingFang SC;
												font-weight: 600;
												color: hsl(0, 0%, var(--hsl));
												line-height: 22px;
											}

											& > div:last-child {
												font-size: 12px;
												font-family: PingFangSC-Light, PingFang SC;
												font-weight: 300;
												color: hsl(0, 0%, var(--hsl));
												line-height: 17px;
											}
										}
									}

									&.warning {
										width: 100px;
										height: 100px;
										margin-left: 10px;
										background: white;
										position: relative;
										z-index: 1;
										display: flex;
										align-items: center;
										justify-content: space-between;
										flex-direction: column;

										& > .Number {
											position: absolute;
											left: 12px;
											top: 12px;
											width: 76px;
											height: 76px;
											display: flex;
											align-items: center;
											justify-content: center;
											font-size: 21px;
											font-family: PingFangSC-Semibold, PingFang SC;
											font-weight: 600;
											color: #ff8940;
											line-height: 29px;
											z-index: 1;
											border-radius: 50%;
											background: radial-gradient(
												rgba(255, 137, 64, 0.2),
												rgba(255, 137, 64, 0.1),
												#fff 45%
											);

											&::after {
												position: absolute;
												content: "";
												left: 8px;
												height: 8px;
												width: 60px;
												height: 60px;
												opacity: 0.49;
												border-radius: 50%;
												border: 2px solid rgba(255, 137, 64, 0.49);
											}

											&::before {
												position: absolute;
												content: "";
												left: 0;
												height: 0;
												width: 76px;
												height: 76px;
												opacity: 0.49;
												border-radius: 50%;
												border: 8px solid rgba(255, 137, 64, 0.05);
											}
										}

										& > img {
											margin-top: 8px;
											width: 24px;
											height: 24px;
											position: relative;
											z-index: 2;
										}

										& > .Title {
											width: 100%;
											height: 30px;
											background: white;
											padding-bottom: 10px;
											position: relative;
											z-index: 2;
											display: flex;
											align-items: center;
											justify-content: center;
											font-size: 12px;
											font-family: PingFangSC-Semibold, PingFang SC;
											font-weight: 600;
											color: #444444;
										}
									}
								}
							}
						}
					}

					& > .MenuBox {
						width: 100%;
						padding: 0 10px;
						padding-bottom: 55px;

						& > .MenuList {
							margin-bottom: 10px;
						}
					}
				}

				& > .TabBar {
					position: absolute;
					left: 0;
					bottom: 0;
					width: 100%;
					height: 50px;
					background: #ffffff;
					box-shadow: 0px -2px 4px 0px rgba(0, 0, 0, 0.04);
					border-radius: 8px 8px 0px 0px;
					display: flex;
					align-items: center;
					justify-content: center;
					z-index: 2;

					& > div {
						width: 100%;
					}
				}
			}

			& > .WeChatSubmit {
				width: 200px;
				height: 40px;
				display: flex;
				align-items: center;
				justify-content: center;
				color: hsl(0, 0%, var(--hsl));
				font-size: 20px;
				font-family: PingFangSC-Semibold, PingFang SC;
				font-weight: 600;
				color: #ffffff;
				cursor: pointer;
				border-radius: 50px;
				user-select: none;
				margin-top: 16px;
			}
		}

		&.dispose {
			flex: 1;

			.ant-collapse-header {
				display: flex;
				align-items: center;
				justify-content: flex-start;

				.ant-collapse-header-text {
					font-size: 24px;
					font-family: YouSheBiaoTiHei;
				}
			}

			.ant-collapse-content-box {
				& > div {
					max-height: calc(100vh - 456px);
					overflow-y: scroll;
					overflow-x: hidden;
					padding-bottom: 16px;

					// 主题设置
					&.ThemeSetUp {
						& > .Groups {
							width: 100%;
							height: auto;

							& > .Box {
								width: 100%;
								display: flex;
								align-items: flex-start;
								justify-content: flex-start;
								align-content: flex-start;
								flex-wrap: wrap;

								& > div {
									width: 25%;
									padding: 8px;

									& > .ColorTitle {
										width: 100%;
										display: flex;
										align-items: center;
										justify-content: center;
										flex-direction: column;

										& > div:first-child {
											color: #5c6b77;
											font-weight: 500;
											font-size: 18px;
										}

										& > div:last-child {
											display: block;
											color: #777;
											font-weight: lighter;
											font-size: 14px;
										}
									}

									& > .ColorList {
										padding-top: 16px;

										& > div {
											display: flex;
											align-items: center;
											justify-content: center;
											height: 40px;
											border-radius: 2px;
											margin-bottom: 1px;
											cursor: pointer;
											transition: all 0.15s;
											position: relative;
											color: var(--background);

											&::after {
												content: "";
												position: absolute;
												left: 50%;
												transform: translateX(-50%);
												top: 0;
												width: 30px;
												height: 8px;
												background: var(--background);
												border-radius: 10px;
												transition: 0.5s;
												transition-delay: 0.5;
											}

											&::before {
												content: "";
												position: absolute;
												left: 50%;
												transform: translateX(-50%);
												bottom: 0;
												width: 30px;
												height: 8px;
												background: var(--background);
												border-radius: 10px;
												transition: 0.5s;
												transition-delay: 0.5;
											}

											&.active {
												&::after {
													top: 0;
													height: 50%;
													width: 80%;
													border-radius: 30px;
												}

												&::before {
													bottom: 0;
													height: 50%;
													width: 80%;
													border-radius: 30px;
												}

												& > span {
													letter-spacing: 2px;

													&::after {
														transform: skewX(45deg) translate(200px);
													}
												}
											}

											&:hover {
												&::after {
													top: 0;
													height: 50%;
													width: 80%;
													border-radius: 30px;
												}

												&::before {
													bottom: 0;
													height: 50%;
													width: 80%;
													border-radius: 30px;
												}

												& > span {
													letter-spacing: 2px;

													&::after {
														transform: skewX(45deg) translate(200px);
													}
												}
											}

											& > span {
												//
												position: absolute;
												left: 0;
												top: 4px;
												width: 100%;
												height: 32px;
												display: flex;
												justify-content: center;
												align-items: center;
												background: rgba(255, 255, 255, 0.05);
												box-shadow: 0 0px 4px rgba(0, 0, 0, 0.3);
												border-bottom: 1px solid rgba(255, 255, 255, 0.1);
												border-top: 1px solid rgba(255, 255, 255, 0.1);
												border-radius: 30px;
												padding: 10px;
												letter-spacing: 1px;
												text-decoration: none;
												overflow: hidden;
												z-index: 1;
												transition: 0.5s;
												backdrop-filter: blur(15px);
												// color: var(--color);
												color: hsl(0, 0%, var(--hsl));
												font-weight: 400;
												font-size: 14px;
												text-shadow: 0 0 8px var(--background),
													-0 -0 8px var(--background);

												&::after {
													content: "";
													position: absolute;
													top: 0;
													left: 0;
													width: 50%;
													height: 100%;
													background: linear-gradient(
														to left,
														rgba(255, 255, 255, 0.15),
														transparent
													);
													transform: skewX(45deg) translate(0);
													transition: 0.5s;
													filter: blur(0px);
												}
											}
										}
									}
								}
							}
						}
					}

					// 头部设置
					&.HeadSetUp {
						& > div {
							& > .Label {
								display: flex;
								align-items: center;
								justify-content: center;

								& > div {
									flex: 1;
									height: 100%;

									&:first-child {
										& > div {
											display: flex;
											align-items: center;
											justify-content: center;
											padding: 16px;

											& > div {
												width: 100px;
												text-align: right;
												font-size: 16px;
												font-family: MicrosoftYaHeiSemibold;
												color: #444444;
												line-height: 21px;
												margin-right: 16px;
											}
										}
									}

									&:last-child {
										display: flex;
										align-items: center;
										justify-content: flex-start;

										& > div {
											font-size: 16px;
											font-family: MicrosoftYaHeiSemibold;
											color: #444444;
											line-height: 20px;
											height: 20px;
											margin-right: 16px;
										}

										& > img {
											height: 117px;
											background: rgba(0, 0, 0, 0.15);
											cursor: pointer;
										}
									}
								}
							}

							& > .Btn {
								width: 100%;

								& > div {
									width: 100%;
									display: flex;
									align-items: center;
									justify-content: flex-start;
									margin-bottom: 8px;

									& > div {
										flex: 1;
										padding: 0 16px;

										& > div {
											display: flex;
											align-items: center;
											justify-content: flex-start;
											margin-bottom: 8px;

											& > div:first-child {
												width: 150px;
												font-size: 16px;
												font-family: MicrosoftYaHeiSemibold;
												color: #444444;
												line-height: 20px;
												height: 20px;
												margin-right: 16px;
												text-align: right;
											}

											& > div:last-child,
											& > input:last-child {
												flex: 1;
											}
										}
									}
								}
							}
						}
					}

					// 菜单设置
					&.MenuSetUp {
						display: flex;
						align-items: center;
						justify-content: flex-start;
						flex-direction: column;

						& > div {
							width: 375px;

							&.AddButton {
								display: flex;
								align-items: center;
								justify-content: center;
								height: 44px;
								border-radius: 5px;
								color: hsl(0, 0%, var(--hsl));
								font-size: 18px;
								font-family: PingFangSC-Semibold, PingFang SC;
								font-weight: 600;
								cursor: pointer;
								margin-bottom: 16px;
								line-height: 44px;
							}

							&.MenuBox {
								& > .MenuList {
									position: relative;
									margin-bottom: 16px;
									min-height: 160px;
									overflow: hidden;

									&:hover {
										& > .MenuOptions {
											left: 0;
										}
									}

									& > .MenuOptions {
										position: absolute;
										left: 100%;
										top: 0;
										width: 100%;
										height: 100%;
										background: rgba(0, 0, 0, 0.85);
										z-index: 2;
										transition: all 0.35s;
										display: flex;
										align-items: center;
										justify-content: center;
										flex-direction: column;

										& > div {
											position: relative;
											cursor: pointer;
											display: flex;
											align-items: center;
											justify-content: center;
											width: 100px;
											padding: 8px 16px;
											margin-bottom: 24px;
											color: #fff;
											transition: 0.5s;
											letter-spacing: 4px;
											overflow: hidden;

											&:hover {
												background: var(--color);
												color: hsl(0, 0%, var(--hsl));
												box-shadow: 0 0 5px var(--color), 0 0 25px var(--color),
													0 0 50px var(--color), 0 0 200px var(--color);
												-webkit-box-reflect: below 1px
													linear-gradient(transparent, #0005);
											}

											& > span {
												position: absolute;
												display: block;

												&:nth-child(1) {
													top: 0;
													left: 0;
													width: 100%;
													height: 2px;
													background: linear-gradient(
														90deg,
														transparent,
														var(--color)
													);
													animation: animate1 1s linear infinite;
												}

												&:nth-child(2) {
													top: -100%;
													right: 0;
													width: 2px;
													height: 100%;
													background: linear-gradient(
														180deg,
														transparent,
														var(--color)
													);
													animation: animate2 1s linear infinite;
													animation-delay: 0.25s;
												}

												&:nth-child(3) {
													bottom: 0;
													right: 0;
													width: 100%;
													height: 2px;
													background: linear-gradient(
														270deg,
														transparent,
														var(--color)
													);
													animation: animate3 1s linear infinite;
													animation-delay: 0.5s;
												}

												&:nth-child(4) {
													bottom: -100%;
													left: 0;
													width: 2px;
													height: 100%;
													background: linear-gradient(
														360deg,
														transparent,
														var(--color)
													);
													animation: animate4 1s linear infinite;
													animation-delay: 0.75s;
												}
											}

											@keyframes animate1 {
												0% {
													left: -100%;
												}

												50%,
												100% {
													left: 100%;
												}
											}

											@keyframes animate2 {
												0% {
													top: -100%;
												}

												50%,
												100% {
													top: 100%;
												}
											}

											@keyframes animate3 {
												0% {
													right: -100%;
												}

												50%,
												100% {
													right: 100%;
												}
											}

											@keyframes animate4 {
												0% {
													bottom: -100%;
												}

												50%,
												100% {
													bottom: 100%;
												}
											}
										}
									}
								}
							}
						}
					}

					// 底部导航
					&.TabBarSetUp {
						width: 100%;
						display: flex;
						align-items: flex-start;
						justify-content: center;

						& > .TabBarType {
							flex: 1;
							margin-right: 16px;

							& > .Box {
								display: flex;
								align-items: center;
								justify-content: center;
								flex-direction: column;

								& > div {
									width: 500px;
									display: flex;
									align-items: center;
									justify-content: center;
									flex-direction: column;
									margin-bottom: 16px;

									& > div:first-child {
										font-size: 17px;
										font-family: AppleSystemUIFont;
										color: #262626;
										line-height: 30px;
									}

									& > div:last-child {
										cursor: pointer;
									}
								}
							}
						}

						& > .TabBarBox {
							width: 500px;

							& > .Box {
								& > .TabBarList {
									width: 390px;
									display: flex;
									align-items: flex-start;
									justify-content: flex-start;
									flex-wrap: wrap;

									& > div {
										width: 80px;
										height: 32px;
										background: var(--color);
										border-radius: 17px;
										margin: 4px 12px;
										cursor: pointer;
										display: flex;
										align-items: center;
										justify-content: center;

										& > span {
											color: white;

											&:first-child {
												font-size: 20px;
												margin-right: 4px;
											}

											&:last-child {
												font-size: 12px;
												font-family: PingFangSC-Semibold, PingFang SC;
												font-weight: 600;
												color: #ffffff;
												line-height: 17px;
											}
										}
									}
								}
							}
						}
					}
				}
			}
		}
	}
}
